﻿\documentclass[UTF8, a4paper, twoside]{article}
\usepackage[heading=true]{ctex}
%\usepackage[xCJKecglue=true, PunctStyle=kaiming]{xeCJK}
\usepackage{amsmath, amsthm, amssymb}
\usepackage{array}
\usepackage[longtable]{multirow}
\usepackage{ragged2e}
\usepackage{fancyvrb}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage{fancyhdr}
\usepackage{float}
\usepackage[title]{appendix}
% for inline verbatim %
\usepackage{listings}
\lstset {
    basicstyle = \bfseries\zihao{5}\ttfamily\linespread{1.5}
}

\usepackage{longtable}
\usepackage{ltxtable}
\usepackage[bookmarks=true, colorlinks, citecolor=blue, linkcolor=darkgray]{hyperref}
% \usepackage[colorlinks,urlcolor=blue,dvipdfm]{hyperref}
\usepackage[dvipsnames]{xcolor}
\usepackage{caption}
\usepackage{setspace}
\usepackage{graphviz}
\usepackage[outputdir=build/Paper]{minted}
\usepackage{CJKpunct}
\usepackage{tokcycle}
\usepackage{siunitx}
\usepackage{tocloft}
\usepackage{gbt7714}
\bibliographystyle{gbt7714-numerical}
\usepackage[export]{adjustbox}

\newcommand\bit[1]{\SI{#1}{bit}}
\newcommand\bits[1]{\SI{#1}{bits}}
\newcommand\Byte[1]{\SI{#1}{Byte}}
\newcommand\Bytes[1]{\SI{#1}{Bytes}}
\newcommand\KiB[1]{\SI{#1}{KiB}}
\newcommand\MiB[1]{\SI{#1}{MiB}}
\newcommand\GiB[1]{\SI{#1}{GiB}}
\newcommand\TO{\textasciitilde{}\ }
\newcommand\blankline[2]{\underline{\makebox[#1][c]{#2}}}
%\setCJKfamilyfont{zhsong}[AutoFakeBold = {2.17}]{SimSun}
%\renewcommand*{\songti}{\CJKfamily{zhsong}}
\renewcommand\verb[1]{\mintinline{text}{#1}}
\numberwithin{figure}{section}
\numberwithin{equation}{section}
\numberwithin{table}{section}

\title{基于 x86 体系结构的 Simple 操作系统设计与实现}
\author{戴政奕}
\linespread{1.5}
\begin{document}

\sloppy{}

% 封面、扉页 %
\pagestyle{empty}
\input{Paper/Content/Cover.tex}
\cleardoublepage
\input{Paper/Content/TitlePage.tex}
\cleardoublepage
\input{Paper/Content/declaration.tex}
\cleardoublepage
% 摘要、目录 %
\pagestyle{plain}
\pagenumbering{Roman} % 页码为大写罗马数字
% 中文摘要 %
\input{Paper/Content/ChAbs.tex}
\cleardoublepage
% 英文摘要 %
\input{Paper/Content/EnAbs.tex}
\cleardoublepage
% 目录 %
\input{Paper/Content/TableOfContents.tex}
\cleardoublepage

% 正文 %
\setcounter{page}{0} 
\pagenumbering{arabic} % 页码为大写罗马数字
\pagestyle{fancy}
\fancyhf{}
\fancyhead[C]{河海大学本科毕业论文}
\fancyfoot[C]{\thepage}

\input{Paper/Content/Intro.tex}
\cleardoublepage

\input{Paper/Content/Preparation.tex}
\cleardoublepage

\input{Paper/Content/InteruptException.tex}
\cleardoublepage

\input{Paper/Content/Memory.tex}
\cleardoublepage

\input{Paper/Content/ProcessThread.tex}
\cleardoublepage

\input{Paper/Content/FileSystem.tex}
\cleardoublepage

\input{Paper/Content/Summary.tex}
\cleardoublepage

% \nocite{*}
\phantomsection
\bibliography{Paper/main}
\addcontentsline{toc}{section}{参考文献}
\cleardoublepage
\input{Paper/Content/Ack.tex}
\cleardoublepage
\begin{appendices}
\input{Paper/Content/Appendix_00.tex}
\cleardoublepage
\input{Paper/Content/Appendix_01.tex}
\cleardoublepage
\input{Paper/Content/Appendix_02.tex}
\cleardoublepage
\input{Paper/Content/Appendix_03.tex}
\cleardoublepage
\end{appendices}
\end{document}
